package cn.jobstart;

import cn.jobstart.common.spider.Job51Util;
import cn.jobstart.common.spider.LiePinUtil;
import cn.jobstart.modelExt.SpiderMonitorExt;
import cn.jobstart.spider.service.ISpiderService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-09-19 16:57
 */
@SpringBootTest
public class TaskTestApp {

    @Resource
    private ISpiderService spiderService;

    @Resource
    private Job51Util job51Util;

    @Resource
    private LiePinUtil liePinUtil;



    @Test
    public void  test51JobToken(){

        //得到token
        job51Util. createAuthorization();


    }



    @Test
    public void  nbrcJob(){


        try {
            SpiderMonitorExt spiderMonitor=new SpiderMonitorExt();

            spiderService.startNbrcJob(spiderMonitor);
        } catch (Exception e) {
            e.printStackTrace();

        }


    }
}
